import request from '@/utils/request'

// 查询课程章节-小节关联列表
export function listCourseChapterSection(query) {
  return request({
    url: '/project/courseChapterSection/list',
    method: 'get',
    params: query
  })
}

// 查询课程章节-小节关联详细
export function getCourseChapterSection(id) {
  return request({
    url: '/project/courseChapterSection/' + id,
    method: 'get'
  })
}

// 新增课程章节-小节关联
export function addCourseChapterSection(data) {
  return request({
    url: '/project/courseChapterSection',
    method: 'post',
    data: data
  })
}

// 修改课程章节-小节关联
export function updateCourseChapterSection(data) {
  return request({
    url: '/project/courseChapterSection',
    method: 'put',
    data: data
  })
}

// 删除课程章节-小节关联
export function delCourseChapterSection(id) {
  return request({
    url: '/project/courseChapterSection/' + id,
    method: 'delete'
  })
}
